package com.example.feitiansys.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 打卡记录表(Attendance)实体类
 * @author makejava
 * @Date 2021-11-03-13:55
 */
public class Attendance {
    /**
     * id
     */
    private Integer id;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 打卡类型【1：上班 2：下班】
     */
    private Integer  cardType;
    /**
     * 打卡的ip地址
     */
    private  String ip;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCardType() {
        return cardType;
    }

    public void setCardType(Integer cardType) {
        this.cardType = cardType;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Attendance{" +
                "id=" + id +
                ", userId=" + userId +
                ", cardType=" + cardType +
                ", ip='" + ip + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
